.class public Lcom/alipay/android/app/widget/Loading;
.super Ljava/lang/Object;


# instance fields
.field private mContext:Landroid/app/Activity;

.field private mProgress:Landroid/app/ProgressDialog;


# direct methods
.method public constructor <init>(Landroid/app/Activity;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/alipay/android/app/widget/Loading;->mContext:Landroid/app/Activity;

    return-void
.end method

.method static synthetic access$0(Lcom/alipay/android/app/widget/Loading;)Landroid/app/ProgressDialog;
    .locals 1

    iget-object v0, p0, Lcom/alipay/android/app/widget/Loading;->mProgress:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$1(Lcom/alipay/android/app/widget/Loading;)Landroid/app/Activity;
    .locals 1

    iget-object v0, p0, Lcom/alipay/android/app/widget/Loading;->mContext:Landroid/app/Activity;

    return-object v0
.end method

.method static synthetic access$2(Lcom/alipay/android/app/widget/Loading;Landroid/app/ProgressDialog;)V
    .locals 0

    iput-object p1, p0, Lcom/alipay/android/app/widget/Loading;->mProgress:Landroid/app/ProgressDialog;

    return-void
.end method

.method private show(Ljava/lang/CharSequence;)V
    .locals 2

    new-instance v0, Lcom/alipay/android/app/widget/Loading$1;

    invoke-direct {v0, p0, p1}, Lcom/alipay/android/app/widget/Loading$1;-><init>(Lcom/alipay/android/app/widget/Loading;Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/alipay/android/app/widget/Loading;->mContext:Landroid/app/Activity;

    invoke-virtual {v1, v0}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method


# virtual methods
.method public dismiss()V
    .locals 2

    new-instance v0, Lcom/alipay/android/app/widget/Loading$2;

    invoke-direct {v0, p0}, Lcom/alipay/android/app/widget/Loading$2;-><init>(Lcom/alipay/android/app/widget/Loading;)V

    iget-object v1, p0, Lcom/alipay/android/app/widget/Loading;->mContext:Landroid/app/Activity;

    invoke-virtual {v1, v0}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method public isShowing()Z
    .locals 1

    iget-object v0, p0, Lcom/alipay/android/app/widget/Loading;->mProgress:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/alipay/android/app/widget/Loading;->mProgress:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public show()V
    .locals 1

    invoke-static {}, Lcom/alipay/android/app/lib/ResourceMap;->getString_processing()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/alipay/android/app/widget/Loading;->show(I)V

    return-void
.end method

.method public show(I)V
    .locals 1

    iget-object v0, p0, Lcom/alipay/android/app/widget/Loading;->mContext:Landroid/app/Activity;

    invoke-virtual {v0, p1}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/alipay/android/app/widget/Loading;->show(Ljava/lang/CharSequence;)V

    return-void
.end method
